<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>

<html>
<head>

	<link href="resources/stylesheet.css" rel="stylesheet" type="text/css" >
	
	<script type="text/javascript" src="script/focus-on-enter.js"></script>


	<title>..:: MoxiRPT - Sistema de Gerência de Dados :: Cadastro de Digitações: Formulário 1 - Inclusão </title>

</head>

<body onload="fadePanel()">

<f:view>


	
	<br>
	
	<table border="0" width="100%">

		<tbody>
			<tr valign="middle">
	
				<td width="15%"/>
				<td width="70%">
					

					
				  <a4j:form id="formInclusao" focus="numScreening">
					
						<h:panelGrid columns="1"  width="100%">
							<h:outputText value="Cadastro de Digitações: Formulário 1 - Inclusão"
							styleClass="titulo" />
						</h:panelGrid>
						
						<br>
						
					<rich:spacer />
					<h:outputLabel for="digitacao" value="Digitação: "
						styleClass="rotulo" />
					<h:selectOneMenu id="digitacao"
						value="#{cadastroInclusaoMB.inclusaoVO.digitacao}"
						onkeydown="enterTab(event)">
						<f:selectItem itemValue="1" itemLabel="1" />
						<f:selectItem itemValue="2" itemLabel="2" />
					</h:selectOneMenu>
						
					<br>
					<rich:tabPanel id="inclusaoTabPanel" switchType="client"
						selectedTab="#{cadastroInclusaoMB.selectedTab}">

						<rich:tab id="pagina1" label="Página 1" reRender="contCD4, dtContCD4, terAntiretroviral, aids" > 

							<table width="100%" bordercolor="grey" border="0" cellpadding="0"
								cellspacing="5">

								<tr>
									<td align="left" width="50%"><h:outputLabel
										for="numScreening" value="1. Numero de Screening: "
										styleClass="rotulo" /></td>

									<td align="left" width="50%"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="numScreening"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.numScreening}"
											style="width : 100%;" label="Numero de Screening"
											maxlength="4" onkeydown="enterTab(event)">
											<rich:jQuery selector="#numScreening" query="mask('9999')"
												timing="onload" />

										</h:inputText>
									</a4j:loadScript></td>

								</tr>

								<tr>
									<td align="left"><h:outputLabel for="dtInclusao"
										value="2. Data da Inclusao: " styleClass="rotulo" /></td>

									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="dtInclusao"
											value="#{cadastroInclusaoMB.dtInclusao}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#dtInclusao"
												query="mask('99/99/9999')" timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="sexo"
										value="3. Sexo do Participante: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="sexo"
										style="width : 100%;" onkeydown="enterTab(event)"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.sexo}">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1 = Masculino" />
										<f:selectItem itemValue="2" itemLabel="2 = Feminino" />
										
										<a4j:support
											action="#{cadastroInclusaoMB.verificarSexo_action}"
											event="onblur"
											reRender="dtTesteGrav, contracepcao, amamentando"
											focus="dtNascimento" /> 
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="dtNascimento"
										value="4. Data de Nascimento: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="dtNascimento"
											value="#{cadastroInclusaoMB.dtNasc}" style="width : 100%;"
											onkeydown="enterTab(event)">
											<rich:jQuery selector="#dtNascimento"
												query="mask('99/99/9999')" timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="cor"
										value="5. Cor da Pele: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="cor"
										style="width : 100%;"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.corPele}"
										onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1 = Branco" />
										<f:selectItem itemValue="2" itemLabel="2 = Não Branco" />
									</h:selectOneMenu></td>
								</tr>
								<tr>
									<td align="left"><h:outputLabel for="dtEscarro"
										value="6. Data Escarro Basal: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="dtEscarro"
											value="#{cadastroInclusaoMB.dtEscarro}" style="width : 100%;"
											onkeydown="enterTab(event)">
											<rich:jQuery selector="#dtEscarro" query="mask('99/99/9999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="resBAAR"
										value="7. Resultado do BAAR (escarro): " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="resBAAR"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.resBAAR}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1 = Positivo" />
										<f:selectItem itemValue="0" itemLabel="0 = Negativo" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="quantificacao"
										value="8. Quantificacao: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="quantificacao"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.quantificacao}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1 = +" />
										<f:selectItem itemValue="2" itemLabel="2 = ++" />
										<f:selectItem itemValue="3" itemLabel="3 = +++" />
										<f:selectItem itemValue="4" itemLabel="4 = Numerosos" />
										<f:selectItem itemValue="8"
											itemLabel="8 = Nao quantificado/Nao reportado" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="tbSistemaNervoso"
										value="9. TB Sistema Nervoso Central: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="tbSistemaNervoso"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.tbSistemaNervoso}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="silicosePulmonar"
										value="10. Silicose Pulmonar: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="silicosePulmonar"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.silicosePulmonar}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel
										value="11. TB Pulmonar e Extrapulmonar: " styleClass="rotulo" /></td>
									<td align="right">
									<table width="100%" cellspacing="0">
										<tr>
											<td><a4j:loadScript
												src="/script/jquery.maskedinput-1.2.1.js">
												<h:inputText id="tbPulmonar1"
													value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.codAnatomico1}"
													style="width : 100%;" label="TB Pulmonar" maxlength="2"
													onkeydown="enterTab(event)">
													<rich:jQuery selector="#tbPulmonar1" query="mask('99')"
														timing="onload" />
												</h:inputText>
											</a4j:loadScript></td>
										</tr>
										<tr>
											<td><a4j:loadScript
												src="/script/jquery.maskedinput-1.2.1.js">
												<h:inputText id="tbPulmonar2"
													value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.codAnatomico2}"
													style="width : 100%;" label="TB Pulmonar" maxlength="2"
													onkeydown="enterTab(event)">
													<rich:jQuery selector="#tbPulmonar2" query="mask('99')"
														timing="onload" />
												</h:inputText>
											</a4j:loadScript></td>
										</tr>
										<tr>
											<td><a4j:loadScript
												src="/script/jquery.maskedinput-1.2.1.js">
												<h:inputText id="tbPulmonar3"
													value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.codAnatomico3}"
													style="width : 100%;" label="TB Pulmonar" maxlength="2"
													onkeydown="enterTab(event)">
													<rich:jQuery selector="#tbPulmonar3" query="mask('99')"
														timing="onload" />
												</h:inputText>
											</a4j:loadScript></td>
										</tr>

									</table>

									</td>
								</tr>


								<tr>
									<td align="left"><h:outputLabel for="dtAntiHIV"
										value="12. Data do anti-HIV: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="dtAntiHIV"
											value="#{cadastroInclusaoMB.dtTesteHiv}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#dtAntiHIV" query="mask('99/99/9999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="resAntiHIV"
										value="13. Resultado do anti-HIV: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="resAntiHIV"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.resultTesteHiv}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1 = Positivo" />
										<f:selectItem itemValue="2" itemLabel="2 = Negativo" />
										 
										<a4j:support
											action="#{cadastroInclusaoMB.verificarResAntiHIV_action}"
											event="onblur" reRender="contCD4, dtContCD4, terAntiretroviral, aids"
											focus="#{cadastroInclusaoMB.focus}" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td colspan="2" width="100%">
										<table width="100%" cellspacing="0">
											<tr>
												<td align="left" width="50%"><h:outputLabel
													for="contCD4" value="14. Contagem de CD4: "
													styleClass="rotulo" /></td>

												<td align="left" width="50%"><a4j:loadScript
													src="/script/jquery.maskedinput-1.2.1.js">
													<h:inputText id="contCD4"
														disabled="#{cadastroInclusaoMB.hivNeg}"
														value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.contCd4}"
														style="width : 100%;" label="Contagem de CD4"
														maxlength="4" onkeydown="enterTab(event)">
														<rich:jQuery selector="#contCD4" query="mask('9999')"
															timing="onload" />
													</h:inputText>
												</a4j:loadScript></td>


											</tr>


											<tr>
												<td align="left" width="50%"><h:outputLabel
													for="dtContCD4" value="15. Data da contagem de CD4: "
													styleClass="rotulo" /></td>
												<td align="left" width="50%"><a4j:loadScript
													src="/script/jquery.maskedinput-1.2.1.js">
													<h:inputText id="dtContCD4"
														disabled="#{cadastroInclusaoMB.hivNeg}"
														value="#{cadastroInclusaoMB.dtContCD4}"
														style="width : 100%;" onkeydown="enterTab(event)">
														<rich:jQuery selector="#dtContCD4"
															query="mask('99/99/9999')" timing="onload" />
													</h:inputText>
												</a4j:loadScript></td>
											</tr>

											<tr>
												<td align="left" width="50%"><h:outputLabel
													for="terAntiretroviral"
													value="16. Terapia antiretroviral: " styleClass="rotulo" /></td>
												<td align="left" width="50%"><h:selectOneMenu
													id="terAntiretroviral"
													disabled="#{cadastroInclusaoMB.hivNeg}"
													value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.usoTerapAntiRetro}"
													style="width : 100%;" onkeydown="enterTab(event)">
													<f:selectItem itemValue="-1" itemLabel="" />
													<f:selectItem itemValue="0" itemLabel="0 = Nao" />
													<f:selectItem itemValue="1" itemLabel="1 = Sim" />
												</h:selectOneMenu></td>
											</tr>

											<tr>
												<td align="left" width="50%"><h:outputLabel for="aids"
													value="17. Infeccao Relacionada a AIDS: "
													styleClass="rotulo" /></td>
												<td align="left" width="50%"><h:selectOneMenu id="aids"
													disabled="#{cadastroInclusaoMB.hivNeg}"
													value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.aids}"
													style="width : 100%;" onkeydown="enterTab(event)">
													<f:selectItem itemValue="-1" itemLabel="" />
													<f:selectItem itemValue="0" itemLabel="0 = Nao" />
													<f:selectItem itemValue="1" itemLabel="1 = Sim" />
													<a4j:support event="onblur"
														action="#{cadastroInclusaoMB.alterarTab1para2_action}"
														reRender="inclusaoTabPanel"
														focus="#{cadastroInclusaoMB.focus}" />
												</h:selectOneMenu></td>
											</tr>

										</table>
									</td>
								</tr>

								<tr>
									<td></td>
									<td align="right"><a4j:commandButton
										value="Próxima Página"
										action="#{cadastroInclusaoMB.alterarTab1para2_action}"
										reRender="inclusaoTabPanel" id="proxpg1"
										ignoreDupResponses="true" onkeydown="onclick()"
										focus="#{cadastroInclusaoMB.focus}" 
										 /></td>
								</tr>

							</table>

						</rich:tab>

						<rich:tab id="pagina2" label="Página 2" >

							<table width="100%" bordercolor="grey" border="0" cellpadding="0"
								cellspacing="5">

								<tr>
									<td align="left" width="50%"><h:outputLabel
										for="qtDiasTerAntiTB"
										value="18. Dias de terapia antituberculose: "
										styleClass="rotulo" /></td>
									<td align="left" width="50%"><h:selectOneMenu
										id="qtDiasTerAntiTB"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.diasTerapAntiTb}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
										<f:selectItem itemValue="5" itemLabel="5" />
										<f:selectItem itemValue="6" itemLabel="6" />
										<f:selectItem itemValue="7" itemLabel="7" />
										
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="diasTerapFq"
										value="19. Dias de terapia com fluoroquinilona: "
										styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="diasTerapFq"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.diasTerapFq}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="indKarnofsky"
										value="20. Indice de Karnofsky: " styleClass="rotulo" /></td>

									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="indKarnofsky"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.indKarnofsky}"
											style="width : 100%;" label="Indice de Karnofsky"
											maxlength="3" onkeydown="enterTab(event)">
											<rich:jQuery selector="#indKarnofsky" query="mask('999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>



								</tr>

								<tr>
									<td align="left"><h:outputLabel for="dtExamesLab"
										value="21. Data dos exames laboratoriais basais: "
										styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="dtExamesLab"
											value="#{cadastroInclusaoMB.dtExamesLab}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#dtExamesLab"
												query="mask('99/99/9999')" timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="astTGO"
										value="22. AST/TGO: " styleClass="rotulo" /></td>

									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="astTGO"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.astTgo}"
											style="width : 100%;" label="AST/TGO" maxlength="3"
											onkeydown="enterTab(event)">
											<rich:jQuery selector="#astTGO" query="mask('999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>

								</tr>


								<tr>
									<td align="left"><h:outputLabel for="bilirrubina"
										value="23. Bilirrubina Total: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="bilirrubina"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.bilirrubina}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#bilirrubina" query="mask('99.9')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="creatinina"
										value="24. Creatinina: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="creatinina"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.creatinina}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#creatinina" query="mask('99.9')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="potassio"
										value="25. Potassio: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="potassio"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.potassio}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#potassio" query="mask('9.9')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="hemoglobina"
										value="26. Hemoglobina: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="hemoglobina"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.hemoglobina}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#hemoglobina" query="mask('99.9')"
												timing="onload" />
											
											
											
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="plaquetas"
										value="27. Plaquetas: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="plaquetas"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.plaquetas}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#plaquetas" query="mask('999,999')"
												timing="onload" />
											
											<a4j:support
												action="#{cadastroInclusaoMB.verificarSexo_action}"
												event="onblur"
												reRender="dtTesteGrav, contracepcao, amamentando"
												focus="#{cadastroInclusaoMB.focus}" /> 
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td colspan="2" width="100%">
										<table width="100%" cellspacing="0">

											<tr>
												<td align="left" width="50%"><h:outputLabel
													for="dtTesteGrav"
													value="28. Data do teste de gravidez negativo: "
													styleClass="rotulo" /></td>
												<td align="left" width="50%"><a4j:loadScript
													src="/script/jquery.maskedinput-1.2.1.js">
													<h:inputText id="dtTesteGrav"
														disabled="#{cadastroInclusaoMB.sexoMasc}"
														value="#{cadastroInclusaoMB.dtTesteGrav}"
														style="width : 100%;" onkeydown="enterTab(event)">
														<rich:jQuery selector="#dtTesteGrav"
															query="mask('99/99/9999')" timing="onload" />
															
												
													</h:inputText>
												</a4j:loadScript></td>
											</tr>

											<tr>
												<td align="left" width="50%"><h:outputLabel
													for="contracepcao" value="29. Contracepcao: "
													styleClass="rotulo" /></td>
												<td align="left" width="50%"><h:selectOneMenu
													id="contracepcao" disabled="#{cadastroInclusaoMB.sexoMasc}"
													value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.usoContracep}"
													style="width : 100%;" onkeydown="enterTab(event)">
													<f:selectItem itemValue="-1" itemLabel="" />
													<f:selectItem itemValue="0" itemLabel="0 = Nao" />
													<f:selectItem itemValue="1" itemLabel="1 = Sim" />
												</h:selectOneMenu></td>
											</tr>

											<tr>
												<td align="left" width="50%"><h:outputLabel
													for="amamentando" value="30. Amamentando: "
													styleClass="rotulo" /></td>
												<td align="left" width="50%"><h:selectOneMenu
													id="amamentando" disabled="#{cadastroInclusaoMB.sexoMasc}"
													value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.estaAmamentando}"
													style="width : 100%;" onkeydown="enterTab(event)">
													<f:selectItem itemValue="-1" itemLabel="" />
													<f:selectItem itemValue="0" itemLabel="0 = Nao" />
													<f:selectItem itemValue="1" itemLabel="1 = Sim" />
												</h:selectOneMenu></td>
											</tr>

										</table>
									</td>
								</tr>


								<tr>
									<td align="left" width="50%"><h:outputLabel
										for="intolerancia" value="31. Intolerancia: "
										styleClass="rotulo" /></td>
									<td align="left" width="50%"><h:selectOneMenu
										id="intolerancia"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.intoleranciaDrog}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="contraindicacao"
										value="32. Contra-indicacao: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="contraindicacao"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.contraIndicacao}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="terapIntInac"
										value="33. Uso de terapias inaceitaveis: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="terapIntInac"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.usoTerapInteracInac}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>



								<tr>
									<td align="left"><h:outputLabel for="incMedOrais"
										value="34. Incapacidade de medicacoes orais: "
										styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="incMedOrais"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.incapMedOrais}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<a4j:support event="onblur"
											action="#{cadastroInclusaoMB.alterarTab2para3_action}"
											reRender="inclusaoTabPanel"
											focus="#{cadastroInclusaoMB.focus}" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td></td>
									<td align="right"><a4j:commandButton
										value="Próxima Página"
										action="#{cadastroInclusaoMB.alterarTab2para3_action}"
										reRender="inclusaoTabPanel" id="proxpg2" 
										ignoreDupResponses="true" onkeydown="onclick()"
										focus="#{cadastroInclusaoMB.focus}" /></td>
								</tr>

							</table>
						</rich:tab>

						<rich:tab id="pagina3" label="Página 3" >

							<table width="100%" bordercolor="grey" border="0" cellpadding="0"
								cellspacing="5">

								<tr>
									<td align="left"><h:outputLabel for="terAntiDep"
										value="35. Terapia com Antidepressivos: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="terAntiDep"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.usoAntiDepressivo}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="riscoSeguranca"
										value="36. Risco de Seguranca: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="riscoSeguranca"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.riscoSeguranca}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="incapaz"
										value="37. Incapaz: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="incapaz"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.incapaz}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="assinouTermo"
										value="38. Assinou Termo: " styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="assinouTermo"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.assinouTermo}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="cavitacao"
										value="39. Cavitacao na radiografia do torax: "
										styleClass="rotulo" /></td>
									<td align="right"><h:selectOneMenu id="cavitacao"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDadosVO.cavitacao}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									</h:selectOneMenu></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="dtRad"
										value="40. Data da radiografia do torax: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="dtRad"
											value="#{cadastroInclusaoMB.dtTelerad}" style="width : 100%;"
											onkeydown="enterTab(event)">
											<rich:jQuery selector="#dtRad" query="mask('99/99/9999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>

								<tr>
									<td align="left"><h:outputLabel for="dtInicio"
										value="41. Data agendada para o inicio: " styleClass="rotulo" /></td>
									<td align="right"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="dtInicio"
											value="#{cadastroInclusaoMB.dtAgendadaInicio}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<rich:jQuery selector="#dtInicio" query="mask('99/99/9999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>
								</tr>



								<tr>
									<td align="left" width="50%"><h:outputLabel for="pid"
										value="42. Identificação do participante: "
										styleClass="rotulo" /></td>

									<td align="left" width="50%"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="pid"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoRandVO.pid}"
											style="width : 100%;" label="Indentificação do Participante"
											maxlength="4" onkeydown="enterTab(event)">
											<rich:jQuery selector="#pid" query="mask('9999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>

								</tr>



								<tr>
									<td align="left" width="50%"><h:outputLabel
										for="bracoEstudo" value="43. Braço do estudo: "
										styleClass="rotulo" /></td>
									<td align="left" width="50%"><h:selectOneMenu
										id="bracoEstudo"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoRandVO.braco}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1 = HPZM" />
										<f:selectItem itemValue="2" itemLabel="2 = HRZE" />
										<!--
										<a4j:support
											action="#{cadastroInclusaoMB.verificarBracoEstudo_action}"
											event="onblur"
											reRender="panelRifampicina, panelEMB, panelRifapentina, panelMoxi"
											focus="#{cadastroInclusaoMB.focus}" /> -->
									</h:selectOneMenu></td>
								</tr>



								<tr>
									<td align="left" width="50%"><h:outputLabel for="inh"
										value="44. INH: " styleClass="rotulo" /></td>

									<td align="left" width="50%"><h:selectOneMenu id="inh"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDoseVO.inh}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="200" itemLabel="200" />
										<f:selectItem itemValue="300" itemLabel="300" />
									</h:selectOneMenu></td>

								</tr>



								<tr>
									<td align="left" width="50%"><h:outputLabel
										for="rifampicina" value="45. Rifampicina: "
										styleClass="rotulo" /></td>

									<td align="left" width="50%"><a4j:outputPanel
										id="panelRifampicina">
										<h:selectOneMenu id="rifampicina"
											disabled="#{cadastroInclusaoMB.braco2Desab}"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDoseVO.rifampicina}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<f:selectItem itemValue="-1" itemLabel="" />
											<f:selectItem itemValue="000" itemLabel="000" />
											<f:selectItem itemValue="450" itemLabel="450" />
											<f:selectItem itemValue="600" itemLabel="600" />
										</h:selectOneMenu>
									</a4j:outputPanel></td>

								</tr>



								<tr>
									<td align="left" width="50%"><h:outputLabel for="pza"
										value="46. PZA: " styleClass="rotulo" /></td>

									<td align="left" width="50%"><h:selectOneMenu id="pza"
										value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDoseVO.pza}"
										style="width : 100%;" onkeydown="enterTab(event)">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="750" itemLabel="750" />
										<f:selectItem itemValue="1000" itemLabel="1000" />
										<f:selectItem itemValue="1500" itemLabel="1500" />
										<f:selectItem itemValue="2000" itemLabel="2000" />
									</h:selectOneMenu></td>

								</tr>

								<tr>
									<td align="left" width="50%"><h:outputLabel for="emb"
										value="47. EMB: " styleClass="rotulo" /></td>

									<td align="left" width="50%"><a4j:outputPanel
										id="panelEMB">
										<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
											<h:inputText id="emb"
												disabled="#{cadastroInclusaoMB.braco2Desab}"
												value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDoseVO.emb}"
												style="width : 100%;" label="EMB" maxlength="4"
												onkeydown="enterTab(event)">
												<rich:jQuery selector="#emb" query="mask('9999')"
													timing="onload" />
											</h:inputText>
										</a4j:loadScript>
									</a4j:outputPanel></td>

								</tr>



								<tr>
									<td align="left" width="50%"><h:outputLabel
										for="rifapentina" value="48. Rifapentina: "
										styleClass="rotulo" /></td>

									<td align="left" width="50%"><a4j:outputPanel
										id="panelRifapentina">
										<h:selectOneMenu id="rifapentina"
											disabled="#{cadastroInclusaoMB.braco1Desab}"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDoseVO.rifapentina}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<f:selectItem itemValue="-1" itemLabel="" />
											<f:selectItem itemValue="000" itemLabel="000" />
											<f:selectItem itemValue="300" itemLabel="300" />
											<f:selectItem itemValue="450" itemLabel="450" />
										</h:selectOneMenu>
									</a4j:outputPanel></td>

								</tr>

								<tr>
									<td align="left" width="50%"><h:outputLabel for="moxi"
										value="49. Moxifloxacino: " styleClass="rotulo" /></td>

									<td align="left" width="50%"><a4j:outputPanel
										id="panelMoxi">
										<h:selectOneMenu id="moxi"
											disabled="#{cadastroInclusaoMB.braco1Desab}"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDoseVO.moxi}"
											style="width : 100%;" onkeydown="enterTab(event)">
											<f:selectItem itemValue="-1" itemLabel="" />
											<f:selectItem itemValue="000" itemLabel="000" />
											<f:selectItem itemValue="400" itemLabel="400" />
										</h:selectOneMenu>
									</a4j:outputPanel></td>

								</tr>

								<tr>
									<td align="left" width="50%"><h:outputLabel for="vitB6"
										value="50. Vitamina B6: " styleClass="rotulo" /></td>

									<td align="left" width="50%"><a4j:loadScript
										src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText id="vitB6"
											value="#{cadastroInclusaoMB.inclusaoVO.inclusaoDoseVO.vitB6}"
											style="width : 100%;" label="Vitamina B6" maxlength="3"
											onkeydown="enterTab(event)">
											<rich:jQuery selector="#vitB6" query="mask('999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript></td>

								</tr>

							</table>
							<BR>
							<HR>
							<h:panelGroup id="botoesCadastro"
								style="display:block; text-align:left" rendered="true">

								<a4j:commandButton value="Salvar"
									action="#{cadastroInclusaoMB.cadastrarDig_action}"
									ignoreDupResponses="true" reRender="panelResultado, inclusaoTabPanel"
									onclick="showPanel()" />

								<a4j:commandButton value="Cancelar"
									action="#{cadastroInclusaoMB.cancelarForm_action}"
									ignoreDupResponses="true" reRender="inclusaoTabPanel"
									focus="#{cadastroInclusaoMB.focus}" onclick="fadePanel()" />
									
							</h:panelGroup>

						</rich:tab>

					</rich:tabPanel>

				</a4j:form></td>
				<td width="15%" />
			</tr>

			<tr valign="middle">
				<td width="15%" />
				<td width="70%"><rich:panel id="panelResultado"
					styleClass="box">

					<h:panelGroup id="panelGroupResultado">

						<h:outputText value="Status: " />

						<a4j:status id="commonstatus" startText="Processando... "
							stopText="Concluído." />

						<br>

						<h:outputText id="mensagem" styleClass="rotuloSucesso"
							value="#{cadastroInclusaoMB.mensagemSucesso}" />
						<h:outputText id="mensagemErro" styleClass="rotuloErro"
							value="#{cadastroInclusaoMB.mensagemErro}" />

					</h:panelGroup>

					<rich:effect name="showPanel" for="panelResultado" type="Appear" />
					<rich:effect name="fadePanel" for="panelResultado" type="Fade" />

				</rich:panel></td>
				<td width="15%" /></td>
			</tr>
		</tbody>
	</table>

</f:view>

</body>

</html>